import java.io.*;
import java.util.StringTokenizer;

public class 牛牛的背包问题 {
    public static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
    public static Read in = new Read();
    public static int MAXN = 41;
    public static long[] arr = new long[MAXN];
    public static int[] lSum = new int[MAXN];
    public static int[] rSum = new int[MAXN];
    public static int n;
    public static long m;
    public static void main(String[] args) throws IOException {
        n = in.nextInt();
        m = in.nextLong();
        for (int i = 0; i < n; i++) {
            arr[i] = in.nextLong();
        }
        out.println(compute());
        out.close();
    }

    private static int compute() {
        int lSize = dfs(0,n / 2,)
    }


    public static class Read {
        StringTokenizer st = new StringTokenizer("");
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        String next() throws IOException {
            while (!st.hasMoreTokens()) {
                st = new StringTokenizer(bf.readLine());
            }
            return st.nextToken();
        }

        int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        long nextLong() throws IOException {
            return Long.parseLong(next());
        }
    }
}
